<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{$webseting.web_title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<script type="text/javascript" src="__PUBLIC__/wap/js/jquery-1.8.3.min.js"></script>
<script src="__PUBLIC__/wap/js/flexible.js"></script>
<script type="text/javascript" src="__PUBLIC__/layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/icons.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/swiper.min.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/public.css" />
</head>
<body class="index" ontouchstart="" onmouseover="">
<div class="op">
	<a href="https://mp.weixin.qq.com/mp/profile_ext?action=home&scene=110&__biz=MzIyNDA4MDU3MA==#wechat_redirect">
		<i class="iconfont">&#xe62d</i><span>关注</span>
	</a>
</div>
<div class="page">
	<div class="avatar">
		<span><img src="{$shop_info.member_logo|get_member_logo_default}" alt=""></span>
		<div class="name">
			{$shop_info.member_name}的店铺
		</div>
	</div>
	<div class="swiper-container goodsshow">
		<div class="swiper-wrapper">
			<volist name="ad1" id='vo'>
				<div class="swiper-slide">
					<img data-src="{$vo.image_path}" class="swiper-lazy">
					<div class="swiper-lazy-preloader swiper-lazy-preloader-white">
					</div>
				</div>
			</volist>
			<if condition="$shop_info.has_slide_image eq 1">
				<div class="swiper-slide">
					<img data-src="{$shop_info.slide_image}" class="swiper-lazy">
					<div class="swiper-lazy-preloader swiper-lazy-preloader-white">
					</div>
				</div>
			</if>
		</div>
		<div class="swiper-pagination swiper-pagination-white">
		</div>
	</div>
	<div class="bggreen">
		<div class="catnav">
			<ul>
				<li>
					<a href="{:U('wap/goods/index',array('type'=>98,'share'=>$share_para))}" title="水果">
					<img src="/Public/wap/img/caticon/shuiguo.jpg">
					</a>
					<h4>水果</h4>
				</li>
				<li>
					<a href="{:U('wap/goods/index',array('type'=>99,'share'=>$share_para))}" title="干货">
					<img src="/Public/wap/img/caticon/ganhuo.jpg">
					</a>
					<h4>干货</h4>
				</li>
				<li>
					<a href="{:U('wap/goods/index',array('type'=>104,'share'=>$share_para))}" title="特产">
					<img src="/Public/wap/img/caticon/techan.jpg">
					</a>
					<h4>特产</h4>
				</li>
				<li>
					<a href="{:U('wap/goods/index',array('type'=>121,'share'=>$share_para))}" title="零食">
					<img src="/Public/wap/img/caticon/shucai.jpg">
					</a>
					<h4>蔬菜</h4>
				</li>
				<li>
					<a href="{:U('Wap/Goods/index', array('type'=>98,'share'=>$share_para))}" title="更多">
					<!--<a href="{:U('wap/goods/index')}" title="更多">-->
					<img src="/Public/wap/img/caticon/gengduo.jpg">
					</a>
					<h4>更多</h4>
				</li>
			</ul>
		</div>
	</div>
	<div class="rec clearfix">
		<div class="col2 brdr" style="height:5rem">
			<a href="{:U('Wap/Goods/goods_detail', array('id'=>558,'share'=>$share_para))}">
			<img src="/Public/wap/img/rec1/1.png">
			</a>
		</div>
		<div class="col3">
			<div class="col100 brdb" style="height:2rem">
				<img src="/Public/wap/img/rec1/2.png">
			</div>
			<div class="clearfix">
			</div>
			<div class="col50 brdr" style="height:3rem">
				<img src="/Public/wap/img/rec1/3.png">
			</div>
			<div class="col50 " style="height:3rem">
				<a href="{:U('Wap/Goods/index', array('type'=>107,'share'=>$share_para))}">
				<img src="/Public/wap/img/rec1/4.png">
				</a>
			</div>
			<div class="clearfix">
			</div>
		</div>
	</div>
	<div class="goodslist">
    <div class="goods">
			<a href="/index.php/wap/goods/goods_detail/id/604">
			<img src="/Public/wap/img/goods/shanyao.jpg">
			</a>
			<a href="/index.php/wap/goods/goods_detail/id/604" class="title">
			农家绿色有机无公害紫玉淮山
			</a>
		</div>
		<div class="goods">
			<a href="{:U('Wap/Goods/index', array('type'=>100,'share'=>$share_para))}">
			<img src="/Public/wap/img/goods/mihoutao.jpg">
			</a>
			<a href="{:U('Wap/Goods/index', array('type'=>100,'share'=>$share_para))}" class="title">
			翠玉猕猴桃 富含维生素C
			</a>
		</div>
		<div class="goods">
			<a href="{:U('Wap/Goods/index', array('type'=>102,'share'=>$share_para))}">
			<img src="/Public/wap/img/goods/shiliu.jpg">
			</a>
			<a href="{:U('Wap/Goods/index', array('type'=>102,'share'=>$share_para))}" class="title">
			大小均匀 颗颗如一 自然健康
			</a>
		</div>
		<div class="goods">
			<a href="{:U('Wap/Goods/index', array('type'=>106,'share'=>$share_para))}">
			<img src="/Public/wap/img/goods/huolongguo.jpg">
			</a>
			<a href="{:U('Wap/Goods/index', array('type'=>106,'share'=>$share_para))}" class="title">
			清甜芳香 淡雅香气萦绕，爽口的甜蜜清新不腻
			</a>
		</div>
		<div class="goods">
			<a href="{:U('Wap/Goods/index', array('type'=>107,'share'=>$share_para))}">
			<img src="/Public/wap/img/goods/youzi.jpg">
			</a>
			<a href="{:U('Wap/Goods/index', array('type'=>107,'share'=>$share_para))}" class="title">
			柚香浓郁 皮薄多汁 酸甜可口 鲜嫩美味
			</a>
		</div>
		<div class="goods">
			<a href="{:U('Wap/Goods/index', array('type'=>105,'share'=>$share_para))}">
			<img src="/Public/wap/img/goods/niruntang.jpg">
			</a>
			<a href="{:U('Wap/Goods/index', array('type'=>105,'share'=>$share_para))}" class="title">
			【梨润堂】山东特产莱阳秋梨膏系列
			</a>
		</div>
	</div>
	<h4 class="title"><span class="line"></span> 精品推荐<span class="line"></span></h4>
	<div class="list more_html">
		<volist name="goods_list" id="vo">
			<div class="goods">
				<div class="item">
					<div class="goodsimg imgnobg">
						<a href="{:U('wap/goods/goods_detail',array('id'=>$vo['goods_id'],'share'=>$share_para))}">
						<img src="{$vo.goods_img} " alt="" />
						</a>
					</div>
					<div class="form">
						<if condition="$vo.base_logo eq null" > 暂无数据
							<else/>
							<img src="{$vo.base_logo}">
							<span>{$vo.base_name}</span>
						</if>
					</div>
					<div class="title">
						<a href="{:U('wap/goods/goods_detail',array('id'=>$vo['goods_id'],'share'=>$share_para))}">
						{$vo.goods_name}
						</a>
					</div>
					<div class="pirce">
						<!--<span class="num green">¥{$vo.shop_price}</span>-->
						<span class="green">¥<span class="num">{$vo.unit_price}</span>{$vo.units}</span>
					</div>
					<div class="addcart" onclick="" goods_id="{$vo.goods_id}" img_url="{$vo.goods_img}" goods_price="{$vo.shop_price}" goods_attr_id="{$vo.goods_attr_id}">
						<i class="iconfont">&#xe612</i>
					</div>
				</div>
			</div>
		</volist>
	</div>
	<div class="clearfix">
	</div>
	<input type="hidden" name="type" value="{$_GET['type']}" />
	<input type="hidden" name="order" value="" />
	<input type="hidden" name="goods_attr_id" value="" >
	<input type="hidden" name="share" value="{$_GET['share']}" >
</div>

<include file="Public/footer_new"/>
<script src="__PUBLIC__/wap/js/swiper.min.js"></script>
<script>
	function add_adress() {
		//询问框
		var msg='亲 您已成功升级为{$level_name}<br>属于你的峰购大礼包迷路了，请完善你的收货地址，大礼包即时送货上门喔！';
		layer.confirm(msg, {
			btn: ['马上领取','暂时不用']//按钮
		}, function(){
			location.href="<?php  echo U('wap/start/gift_address',array('order_sn'=>$add_address['order_sn']));?>";
		}, function(){

		});
	}
	if({$add_address.need_add}){
		add_adress();
	}

	var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true,
        preloadImages: false,
        lazyLoading: true,
		autoplay: 3000
    });
	
	//加入购物车
	$(document).on('click', '.addcart', function () {
		var goods_id = $(this).attr('goods_id');
		var goods_attr_id = $(this).attr('goods_attr_id');
		var img = $(this).attr('img');
		var goods_num = 1;
		var share = $('input[name="share"]').val();
		$.ajax({
			url: "{:U('wap/cart/add_cart')}",
			type:'get',
			data: {goods_id:goods_id,goods_attr_id:goods_attr_id,goods_num:goods_num,share:share},
			dataType: 'json',
			success: function(data){
				if(data.status==1){
					layer.msg('加入成功', {icon: 6});
					var flyer = $('<img style="display:block;width:50px;height:50px;border-radius:50px;position: fixed;z-index: 9999;" src="' + img + '">');      //抛物体对象
				}else{
					layer.msg(data.error, {icon: 5});
				}
			}
		});     
	});

</script>
</body>
</html>